package com.job.yangshida.homework0709.lizi;

/**
 * @author 杨士达
 * @version 1.0
 * @since 2022-07-10 15:20:07
 */
public class Cat extends Animal{
    //子类对象构造式必须要调用父类的构造,不指定就用父类的无参构造,也可以制定有参构造
    public Cat(String name) {
        super(name);
    }

    public Cat() {
        super("tom");
    }
}
